﻿using ARchGL.Platform.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ARchGL.Platform.Core
{
    /// <summary>
    /// 千变_考勤数据
    /// </summary>
    [Table(nameof(QB_ProjectAttendances))]
    public class QB_ProjectAttendances : QianbianEntityBase
    {
        /// <summary>
        /// 项目标识
        /// </summary>
        public Guid ProjectId { get; set; }

        /// <summary>
        /// 人员标识(废弃)
        /// </summary>
        [MaxLength(50)]
        public string WorkerId { get; set; }

        /// <summary>
        /// 身份证号SHA-1加密后的十六进制字符串
        /// 通过该字段与Projectuser 进行关联人员
        /// </summary>
        [MaxLength(100)]
        public string IdCardSHA { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [MaxLength(50)]
        public string Name { get; set; }

        /// <summary>
        /// 1 进场、-1 出场
        /// </summary>
        public int Entry { get; set; }

        /// <summary>
        /// 考勤时间
        /// </summary>
        public DateTime AttendanceTime { get; set; }
    }
}
